// pages/music/music.js
Page({
  data: {
    song_list:[]
  },
  request(){ 
    let self=this
    wx.request({
      url: 'https://tingapi.ting.baidu.com/v1/restserver/ting?method=baidu.ting.billboard.billList&type=1&size=10&offset=0',
      dataType:"json",
      success(res){
        self.setData({
          song_list: res.data.song_list
        })
      }
    })
  }
})